<?php
/**
 * This class enables access to the corresponding database table.
 * 
 * Inspired by oxCountry
 * 
 * @author Klarna
 */
class klarnaPclasses extends oxI18n {
	protected $_sClassName = 'klarnapclasses';
	
	public function __construct() {
		parent::__construct();
		$this->init('klarnapclasses');
	}
	
	public static function isEmpty() {
		$oDB = oxDb::getDb(true);
		$select = "SELECT * FROM klarnapclasses";
		$result = $oDB->execute($select);
		
		if ($result != false && $result->recordCount() > 0) {
			return false;
		}
		
		return true;
	}
}
?>